AI SDK Kotlin
Toggle table of contents
0.2.0
common
Target filter
common
Switch theme
Search in API
Skip to content
AI SDK Kotlin
AI SDK Kotlin
/
ai.torad.aisdk
/
outputChoice
output
Choice
fun
outputChoice
(
options
:
Iterable
<
String
>
,
name
:
String
=
"choice"
,
description
:
String
?
=
null
)
:
Output
<
String
>
fun
outputChoice
(
vararg
options
:
String
,
name
:
String
=
"choice"
,
description
:
String
?
=
null
)
:
Output
<
String
>
fun
<
T
>
outputChoice
(
options
:
Iterable
<
T
>
,
encode
:
(
T
)
->
String
,
decodeChoice
:
(
String
)
->
T
,
name
:
String
=
"choice"
,
description
:
String
?
=
null
)
:
Output
<
T
>